package actionspeedycasemyredis

type UserInfoCases struct {
}

var UserInfoCasesObject UserInfoCases

const (
	MarryStatusDefault                       = 0 //默认,无异常
	RedisUserInfoMarryStatusOrderMarry       = 1 //订婚状态
	RedisUserInfoMarryStatusCancelOrderMarry = 2 //取消订婚状态
	RedisUserInfoMarryStatusMarried          = 3 //结婚状态
	RedisUserInfoMarryStatusDivorce          = 4 //离婚状态

	UserRelationZj = 1 //默认  知己
	UserRelationGm = 2 //闺蜜
	UserRelationJy = 3 //基友

	UserInfoSoulMate            = "soul_mate"              //知己
	UserInfoSoulMateCancelAt    = "soul_mate_cancel_at"    //知己创建时间
	UserInfoUpdatedAt           = "updated_at"             //更新
	UserInfoBestFriends         = "best_friends"           //死党
	UserInfoBestFriendsCancelAt = "best_friends_cancel_at" //创建死党时间
	UserInfoSecOpenId           = "sec_open_id"            //用户id
	UserInfoNickname            = "nickname"               //用户昵称
	UserInfoAvatarUrl           = "avatar_url"             //用户头像
	UserInfoSex                 = "sex"                    //用户性别
	UserInfoCreatedAtString     = "created_at_string"      //用户创建时间，字符串
	UserInfoCreatedAt           = "created_at"             //用户创建时间时间戳
	UserInfoMarriagePartner     = "marriage_partner"       //用户的结婚对象
	UserInfoMarryStatus         = "marry_status"           //用户的结婚状态
	UserInfoCreateUnix          = "create_unix"            //用户创建时间戳
	UserInfoWinningTotal        = "winning_total"          //累计胜场
	UserInfoTotalScore          = "total_score"            //累计总积分
	UserInfoTotalToken          = "token"                  //token
	UserInfoMarrySuites         = "marry_suites"           //用户结婚套装
	UserInfoNowSuiteId          = "now_suite_id"           //用户当前套装id
	NowElementNos               = "now_element_nos"        //散件编号
	UserInfoNowTitleId          = "now_title_id"           //用户当前称号id
	UserInfoNowHeadbgId         = "now_headbg_id"          //用户当前头像框id
	UserInfoNowSingleBackbgId   = "now_single_backbg_id"   //用户当前单人背景版id
	UserInfoNowCoupleBackbgId   = "now_couple_backbg_id"   //用户当前双人背景版id
	UserInfoNowPersonCardId     = "now_person_card_id"     //用户当前个人信息卡id
	UserInfoNowSpecialEffectsId = "now_special_effects_id" //用户当前个人特效卡id
	UserInfoNowPetNo            = "now_pet_no"             //用户当前宠物编号

	NowElementNosBoy  = "now_element_nos_boy"  //散件编号
	NowElementNosGirl = "now_element_nos_girl" //散件编号

	//PackageDetailRedisPropTypeClothing = 1
	//PackageDetailRedisPropTypeProp     = 2
	//PackageDetailRedisPropTypeTools    = 3

	SecretPersonLevel        = "secret_person_level"         //神秘人等级
	SecretPersonScore        = "secret_person_score"         //神秘人积分
	SecretPersonStartTime    = "secret_person_start_time"    //神秘人开始时间
	SecretPersonEndTime      = "secret_person_end_time"      //神秘人结束时间
	SecretPersonStatus       = "secret_person_status"        //1:开启神秘人;0:关闭神秘人
	SecretPersonStatusRank   = "secret_person_status_rank"   //1:开启榜单神秘人;0:关闭神秘人
	SecretPersonNickname     = "secret_person_nickname"      //神秘人游戏昵称
	SecretPersonAvatar       = "secret_person_avatar"        //神秘人头像
	SecretPersonRankNickname = "secret_person_rank_nickname" //神秘人榜单昵称
)

//func (e UserInfoCases) PropType() []int {
//	return []int{
//		//PackageDetailRedisPropTypeClothing,
//		//PackageDetailRedisPropTypeProp,
//		//PackageDetailRedisPropTypeTools,
//	}
//}

//func (e UserInfoCases) PropTypeMap() map[int]int {
//	m := make(map[int]int)
//	for _, s := range e.PropType() {
//		m[s] = s
//	}
//	return m
//}

//func (e UserInfoCases) PropTypeString(tag int) string {
//	switch tag {
//	case PackageDetailRedisPropTypeClothing:
//		return "服饰" //
//	case PackageDetailRedisPropTypeProp:
//		return "道具" //
//	case PackageDetailRedisPropTypeTools:
//		return "功能道具"
//	default:
//		return "未知"
//	}
//}

func (e UserInfoCases) RelationType() []int {
	return []int{
		UserRelationZj,
		UserRelationGm,
		UserRelationJy,
	}
}

func (e UserInfoCases) TripTaskNameMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.RelationType() {
		m[s] = e.RelationTypeString(s)
	}
	return m
}

func (e UserInfoCases) RelationTypeString(tag int) string {
	switch tag {
	case UserRelationZj:
		return "知己"
	case UserRelationGm:
		return "闺蜜"
	case UserRelationJy:
		return "基友"
	default:
		return "未知"
	}
}
